{extend name="layout/layout" /}
{block name="tittle"} 排列三 {/block}
{block name="header"}
<div class="count">
    <div class="firstcount">
        <div class="text">
            <h2>排列三</h2>
            <p>
                <span>每天开奖</span>
            </p>
        </div>
    </div>
    <div class="middlecount">
        <div id="cqsscdt"><h2>第20180506-072期开奖号码</h2>
            <div class="cqssc-nums"><span>2</span><span>5</span><span>5</span><span>0</span><span>0</span></div>
        </div>
    </div>
    <div class="lastcount">
        <a class="help"><h2>天马彩票注册</h2></a>
        <div id="bottom">
            <div id="countdown">
                <a class="help" target="_blank"><font color="#FFFFFF"><b>团队专业指导QQ<br>929701111</b></font></a>
            </div>
        </div>
    </div>
</div>
{/block}
{block name="main"}
<div class="main">
    <div class="mdiv_list">
        <div class="main_l">
            <div class="tb1_head">
                <table width="336" height="84" border="0" align="center" cellpadding="0" cellspacing="0"
                       style="margin-top:5px">
                    <tbody>
                    <tr>
                        <td height="25" class="tb1_f1" align="left" valign="middle"><strong>排列三--开奖记录</strong></td>
                    </tr>
                    <tr>
                        <td height="20" class="tb1_f2" align="left" valign="middle">每天开奖
                        </td>
                    </tr>
                    <tr>
                        <td height="20" class="tb1_f2" align="left" valign="middle">每天开奖</td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="tb1">
                <div class="tb1_info">
                    <div id="open_info" style="text-align: center;">
                        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
                        <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF"
                               style="border-collapse:collapse">
                            <thead>
                            <tr>
                                <td width="45%" class="tb1_title">开奖期数-开奖时间</td>
                                <td width="55%" class="tb1_title">开奖号码</td>
                            </tr>
                            </thead>
                            <tbody id="left_list">

                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>

        <div class="main_r">
            <div class="tb2">
                <div class="tb2_bg">
                    <div class="dh0">
                        <table width="540" border="0" align="center" cellpadding="0" cellspacing="0"
                               style="margin-top:8px">
                            <tbody>
                            <tr>
                                <td width="440" height="25" align="left" valign="middle" class="tb2_f1"><h1><strong>[定位胆]</strong>--排列三人工计划
                                </h1></td>
                                <td width="100" align="right" valign="middle">
                                    <a class="dh3" href="http://{:cache('pl3');}" target="_blank">在线投注</a>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left" valign="middle" class="tb2_f2" height="30" id="jh_tj">
                                    <span style="color:red;font-size:24px;font-weight: bold;"></span>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="dh">
                        <div class="dh2" onclick="data2(1)">个位计划</div>
                        <div class="dh2" onclick="data2(2)">十位计划</div>
                        <div class="dh2" onclick="data2(3)">百位计划</div>
                        <div class="dh2" onclick="data2(4)">前二直选</div>
                        <div class="dh2" onclick="data2(5)">后二直选</div>
                        <div class="dh2" onclick="data2(6)">三星直选</div>
                        <div class="dh2" onclick="data2(7)">不定位胆</div>
                    </div>
                </div>
                <div class="tb2_info">
                    <div id="jh_info">

                        <div>
                            <div style="width:22%;float:left;margin-left:0px" class="tb2_title"> 计划期数</div>
                            <div style="width:19%;float:left;margin-left:1px" class="tb2_title"> 个位计划</div>
                            <div style="width:22%;float:left;margin-left:1px" class="tb2_title"> 计划号码</div>
                            <div style="width:18%;float:left;margin-left:1px" class="tb2_title">开奖结果</div>
                            <div style="width:18%;float:left;margin-left:1px" class="tb2_title">中奖期数</div>
                        </div>
                        <div id="plandt" style="">
                            <div align="center" id="content">

                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </div>
</div>
{/block}
{block name="introduce"}
<div class="sm2">
    <table border="0" cellspacing="0" cellpadding="0" width="100%">
        <tbody>
        <tr>
            <td>
                <h3>
                    排列三计划网页版说明
                </h3>
                <p>
                    “排列三”原为“7星彩”附加玩法，自2004年12月8日起从原有的七星彩玩法中分离出来，单独使用摇奖机、摇奖球进行摇奖，“排列三”、“排列五”共同摇奖，一次摇出5个号码，“排列三”的中奖号码为当期摇出的全部中奖号码的前3位，“排列五”的中奖号码为当期摇出的全部中奖号码，每日进行开奖。
                </p>
            </td>
            <td>
                <h3>
                    重点：
                </h3>
                <p>
                    "单选"奖：投注号码与当期公布的中奖号码的3位数按位数全部相同，即中得单选奖（1000元），如是231，投注号码也必须要是231才算中奖
                </p>
            </td>
        </tr>
        <tr>
            <td>
                <h3>
                    “排列3”追号四原则
                </h3>
                <p>
                    一、确定追号周期。即在选择追某条路线时，追号周期一般不要少于15期。
                    二、前5天不加倍。在“排列三”选号过程中，较为稳妥的思路为：直选追号一般不选择单倍金额超过200元的路线；“组选6”追号一般不选择单倍金额超过40元的路线；“组选3”追号一般不选择单倍金额超过80元的路线
                    三、适时止损。适时止损往往最难做到。但止损并不代表是完全放弃，而是一种以退为进的策略。
                    四、保持好心态。</p>
            </td>
            <td>
                <h3>
                    倍投公式：
                </h3>
                <p>
                    倍投公式：1倍 3倍 8倍 24倍 72倍 216倍 648倍 1944倍 5832倍 17496倍，不知道倍投的自己背下来。省的到时候一激动紧张忘记了。</p>
            </td>
        </tr>
        </tbody>
    </table>
</div>
<script>
    function data() {
        var html = '';
        $.ajax({
            url: '{:url("index/index/history")}',
            type: 'get',
            success: function (res) {
                var html = "";
                $.each(res, function (i, v) {
                    $.each(v, function (ints, arr) {

                        html += '<tr><td class="tb1_tbb">' + arr[0]
                            + '</td><td class="tb1_tbb"><span class="num1">' + arr[1][0]
                            + '</span><span class="num1">' + arr[1][1]
                            + '</span><span class="num1">' + arr[1][2]
                            + '</span><span class="num1">' + arr[1][3]
                            + '</span><span class="num1">' + arr[1][4] + '</span></td></tr>';

                    })
                });
                $('#left_list').html(html);
            }
        });
    }

    data();

    function data2(num) {
        $.ajax({
            url: "{:url('index/index/datas')}",
            type: 'post',
            data: {
                num: num
            },
            success: function (res) {
                var html = "";
                $.each(res, function (i, v) {
                    $.each(v, function (ints, re) {

                        html += "<div><span>" + re[0]
                            + "</span> <span>" + re[1]
                            + "</span> <span>" + re[2]
                            + "</span> <span>" + re[3]
                            + "</span> <span>" + re[4]
                            + "</span> </div>";

                    });
                });
                $('#content').html(html);
            },
        });
    }

    data2(1);

    function head() {
        var html = '';
        $.ajax({
            url: '{:url("index/index/history")}',
            type: 'get',
            success: function (res) {
                var html = "";
                console.log(res.data[0]);
                html = '<h2>第' + res.data[0][0] + '期开奖号码</h2> <div class="cqssc-nums">'
                    + '<span>' + res.data[0][1][0] + '</span><span>' + res.data[0][1][1] + '</span><span>' + res.data[0][1][2] + '</span><span>'
                    + res.data[0][1][3] + '</span><span>' + res.data[0][1][4] + '</span><span>' + res.data[0][1][5] + '</span>' +
                    '</div>';
                $('#cqsscdt').html(html);
            }
        });
    }

    head();
</script>
{/block}
